<?php

class Application_Form_Requisites extends Zend_Form
{

    public function __construct() {
        $translate = new My_Action_Helper_Lang();
        
        $this->setName('form_requisites');
        parent::__construct();
        
        $recipient = new Zend_Form_Element_Text('recipient');
        $recipient->setLabel($translate->_('Recipient'))
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addValidator('Alnum')
                ->addFilter('StringTrim')
		->addFilter('StripTags');
        
        $paye_bank = new Zend_Form_Element_Text('paye_bank');
        $paye_bank->setLabel($translate->_('Bank recipient'))
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addValidator('Alnum')
                ->addFilter('StringTrim')
		->addFilter('StripTags');
        
        $acct = new Zend_Form_Element_Text('acct');
        $acct->setLabel($translate->_('Settlement account'))
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addValidator('Alnum')
                ->addFilter('StringTrim')
		->addFilter('StripTags');
        
        $adjustment_acct = new Zend_Form_Element_Text('adjustment_acct');
        $adjustment_acct->setLabel($translate->_('Adjustment account'))
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addValidator('Alnum')
                ->addFilter('StringTrim')
		->addFilter('StripTags');
        
        $inn = new Zend_Form_Element_Text('inn');
        $inn->setLabel($translate->_('INN'))
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addValidator('Alnum')
                ->addFilter('StringTrim')
		->addFilter('StripTags');
        
        $okpo = new Zend_Form_Element_Text('okpo');
        $okpo->setLabel($translate->_('OKPO'))
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addValidator('Alnum')
                ->addFilter('StringTrim')
		->addFilter('StripTags');
        
        $mfo = new Zend_Form_Element_Text('mfo');
        $mfo->setLabel($translate->_('MFO'))
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addValidator('Alnum')
                ->addFilter('StringTrim')
		->addFilter('StripTags');
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel($translate->_('Update'))
               ->setAttrib('class', 'button');
        
        $this->addElements(array($recipient, $paye_bank, $acct, $adjustment_acct,
            $inn, $okpo, $mfo, $submit));
        
    }


}

